package cn.moningxi.mapper;

import cn.moningxi.bean.GoodsInfomation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsInfomationMapper {

    List<GoodsInfomation> queryGoodsByName(String keywords);

    List<GoodsInfomation> queryGoodsByCategoryId(Integer categoryId);

    GoodsInfomation queryGoodsById(String goodsId);

    List<GoodsInfomation> selectAll();

    List<GoodsInfomation> seacherGoodsByName(@Param("nameInfo") String nameInfo);

    void updateGoodsInfo(GoodsInfomation goodsInfomation);

    GoodsInfomation queryByGoodaSn(String goodsSn);

    void addGoods(GoodsInfomation goodsInfomation);
}